<ul>
  <?php $contents = Doctrine::getTable('Content')->doFetchArray(
            array(
                    'categoryId'=>$categoryId, 
                    'idO'=>$idO, 
                    'limit'=>(isset($limit) ? $limit : 3
                 )
        ));?>

  <?php foreach ($contents as $content):?>
  
    <li style="border-bottom:0px dotted #888;padding:0 0 15px 0;width:270px;">

        <?php echo image_tag("http://".$content['cover'], array('style'=>'float:left;width:70px;height:50px;margin:0 10px 0 0;border-radius:5px;','class'=>''));?>
        
        <div class="left" style="width:190px;">
          <?php echo link_to($content['title'], 'content/leaf1?id='.$content['id'], array('class'=>'list-title', 'style'=>'line-height:18px;font-weight:bold;'));?>
          <br clear="all">
          <a href="#" class="font9 gray" style="line-height:10px;">
              <?php echo image_tag('icons/heart.png', array())?>
              6
          </a>
          
          &nbsp; 
          
          <a href="#" class="font9 gray" style="line-height:10px;">
              <?php echo image_tag('icons/comments.png', array())?>
              12
          </a>
        </div>
        
        <br clear="all">
        
    </li>
  <?php endforeach;?>

</ul>

